<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableUserExts extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_exts', function (Blueprint $table) {
            $table->increments('user_exts_id')->comment('用户扩展表id');
            $table->integer('uid')->default(0)->comment('关联用户表id');
            $table->char('user_email',50)->default('')->comment('用户email');
            $table->char('user_phone',11)->default('')->comment('用户手机号');
            $table->char('user_question',30)->default('')->comment('密保问题');
            $table->char('user_answer',30)->default('')->comment('密保答案');
            $table->char('user_truename',10)->default('')->comment('用户真实姓名');
            $table->char('user_idcard',18)->default('')->comment('用户身份证明');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('user_exts');
    }
}
